<!doctype html>
<html lang="en">
<head>
    <?php include './inc/css.html'; ?>

    <style type="text/css">
        html,body{
            height: 100%;
        }
        
        .ion-ios-more::before{display: none;}

        .wrap{
            margin:0 !important;
        }
        .row {
            margin-right: 0px;
            margin-left: 0px;
        }
        .form-horizontal .control-label {
            padding-top: 7px;
            margin-bottom: 0;
            text-align: right;
        }

        .form-horizontal .form-group input{
                border: none;
                outline: none;
                border-bottom: 1px solid #eee;
                border-radius: 0;
        }
        .form-horizontal label{
          font-size:80%;
        }

    </style>

</head>
<body class="_bg_light">


<!-- 页面头部 -->
<?php include './inc/pagetitle.html'; ?>

<div class="wrap">
    <div class="row">
          <div class="col-sm-6">
            <div class="logo _text_teriary" style="text-align: center;height:180px;line-height:180px;font-size:50px;">
              2025HR
            </div>
          </div>
        <div class="col-sm-6">
            <form class="form-horizontal m-t" id="infoForm" novalidate="novalidate">

                <div class="form-group">
                    <label class="col-xs-4 control-label _text_secondary">手机号:</label>
                    <div class="col-xs-8">
                        <input id="userName" name="userName" class="form-control" type="text" value="13888888888" placeHolder="请填写手机号">
                    </div>
                </div>


                <div class="form-group">
                    <label class="col-xs-4 control-label _text_secondary">密码:</label>
                    <div class="col-xs-8">
                        <input id="password" name="password" class="form-control" maxlength="6" type="password" value="13888888888" aria-required="true" aria-invalid="false" placeHolder="请填写密码">
                    </div>
                </div>

                <div class="form-group">
                      <div class="col-xs-offset-3 col-xs-4">
                        <button id="loginbtn" class="btn btn-block btn-success">登 录</button>
                      </div>          
                      <div class="col-xs-4">
                        <span id="goregister" class="btn btn-block btn-link gopage" data-url="./register.php">注册</span>
                      </div>
                </div>
            </form>
              <div class=" line1 "></div>
              <div class="center" style="height:.8rem;">
                <span class="fa fa-weixin" id="wxlogin"> 微信登录</span>
              </div>
        </div>
    </div>
</div>

</body>
<?php include './inc/js.html'; ?>

<script type="text/javascript">

$(function(){

    $('#wxlogin').on('click',function(){

        layer.msg('微信授权登录');
    })



    $('#loginbtn').on('click',function(e){

        e.preventDefault();
        var userName = $.trim($('input[name=userName]').val());
        var password = $.trim($('input[name=password]').val());

        if(userName.length==0||password.length==0){
            layer.msg('请填写完整登录信息');
            return;
        }


        var data = {
            "userName":userName,
            "password":$.md5(password)
        };


        // $.post('/index.php/WebApp/Users/checkLogin',data ,function(result){
        //     var result = JSON.parse(result);
        //     if(!result.errcode){
        //         layer.msg(result.errmsg,{"time":1000});
        //     }else{
        //         layer.msg(result.errmsg,{"time":1000},function(){
        //           // 登录成功,跳转到登录页
        //           //window.location.href='';
        //         });
        //     }
        // })

        window.location.href='./profile.php'; 
               
    })

})
</script>

</html>